Attribute VB_Name = "modgzip"
Public Declare Function InitDecompression Lib "gzip.dll" () As Long
Public Declare Function InitCompression Lib "gzip.dll" () As Long

Public Declare Function CreateDecompression Lib "gzip.dll" (ByRef context As Long, ByVal flags As Long) As Long
Public Declare Function CreateCompression Lib "gzip.dll" (ByRef context As Long, ByVal flags As Long) As Long

Public Declare Function ResetDecompression Lib "gzip.dll" (ByVal context As Long) As Long
Public Declare Function ResetCompression Lib "gzip.dll" (ByVal context As Long) As Long

Public Declare Function DestroyDecompression Lib "gzip.dll" (ByRef context As Long) As Long
Public Declare Function DestroyCompression Lib "gzip.dll" (ByRef context As Long) As Long

Public Declare Function Decompress Lib "gzip.dll" (ByVal context As Long, ByVal inBytes As Long, ByVal input_size As Long, ByVal outBytes As Long, ByVal output_size As Long, ByVal input_used As Long, ByVal output_used As Long) As Long
Public Declare Function Compress Lib "gzip.dll" (ByVal context As Long, ByVal inBytes As Long, ByVal input_size As Long, ByVal outBytes As Long, ByVal output_size As Long, ByRef input_used As Long, ByRef output_used As Long, ByVal compressionLevel As Long) As Long
